<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>proto</title>
</head>
<body>
    
    <script>
    
        {
            // proto 高版本浏览器中是 __proto__  低版本浏览器 通过 Object.getPrototypeOf() 来创建原型

            let obj = {};

            console.log(obj.__proto__ === Object.prototype);

            console.log(Object.getPrototypeOf(obj) === Object.prototype);

            console.log(Object.getPrototypeOf(obj) === obj.__proto__);

        }

        {
            function fn () {
                console.log('function');
            }
            
            console.dir(fn);


        }


        
    
    </script>

</body>
</html>